import { defineComponent, getCurrentInstance, ref } from 'vue'
import Z from './子'
export default defineComponent({
  name: '父',
  setup(props, { emit }) {
    const num = ref(666)
    const modelValue = ref(111)
    return () => (
      <div>
        父组件的值:{num.value}
        父组件的modelValue:{modelValue.value}
        <Z
          onUpdate:num={(params) => {
            num.value = params
          }}
          v-model={modelValue.value}
        />
      </div>
    )
  },
})
